﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Chinaer.UI.MVC.Filters;

namespace Chinaer.UI.MVC.Controllers
{
    [ValidateLogin]
    public class BaseController : Controller
    {
        private Chinaer.ServiceBuilder.ChinaerServiceBuilder _chinaerServiceBuilder = null;
        public Chinaer.ServiceBuilder.ChinaerServiceBuilder ChinaerServiceBuilder
        {
            get
            {
                return _chinaerServiceBuilder;
            }          

        }
        private string apiToken = null;
        public string ApiToken
        {
            get
            {
                apiToken= Session["apiToken"].ToString();
                return apiToken;
            }
            set
            {
                apiToken = value;
            }
        }
        public BaseController()
        {            
            _chinaerServiceBuilder = new ServiceBuilder.ChinaerServiceBuilder();
        }

    }
}
